function godo(act, v1, v2) {
    
    url = 'index.php?dir=' + $('dir').value + '&sub=' + $('sub').value + '&act=' + act;
    
    switch (act) {
        
        case 'delete':
        case 'view':
        case 'edit':
            url = url + '&id=' + v1;
            break;
        
        case 'create':
            var title = $('title').value;
            var description = $('description').value;
            url = url + '&title=' + title + '&description=' + description;
            break;
            
        case 'update':
            var title = $('title_' + v2).value;
            var description = $('description_' + v2).value;
            url = url + '&id=' + v1 + '&title=' + title + '&description=' + description;
            break;
            
        case 'search':
            var filter = $(v1).value;
            var value = $(v2).value;
            if (value == '') {
                alert("please enter a value");
                return;
            }
            url += '&filter=' + filter + '&value=' + value;
            break;
            
    }
    
    //console.log(url);
    window.location.href = url;
    
}// end godo
